/******************************************************************************/
#include "stdafx.h"
#include "Main.h"
/******************************************************************************/
Button button_start, button_load, button_exit; 
void InitPre()
{
   App.name("Runaway");              
   DataPath("../Data");
   Paks.add("engine.pak"); 
   D.sync(true);                  
   App.flag = APP_WORK_IN_BACKGROUND | APP_NO_PAUSE_ON_WINDOW_MOVE_SIZE | NULL;
}
void StartGame(Ptr)
{
	GameState.set(0.2f); //Go over to Game.cpp
	button_start.del(); // Delete the button
}
/******************************************************************************/
Bool Init() 
{
	OptionsCreate();
   Gui+=button_start.create(Rect_C(0, 0, 0.45f, 0.08f), "StartGame").func(StartGame); // create button which will call 'Func' function when pushed
   return true;
}
/******************************************************************************/
void Shut()
{

}
/******************************************************************************/
Bool Update()
{
   Gui.update();
   return true;                 
}
/******************************************************************************/
void Draw() 
{  
   D.clear(TURQ); 
   Gui.draw();
}
/******************************************************************************/
